package com.qfedu.clue.controller;

import com.qfedu.clue.entity.Clue;
import com.qfedu.clue.service.IClueService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 线索 前端控制器   线索管理
 * </p>
 *
 * @author zhangsan
 * @since 2023-03-02
 */
@RestController
@RequestMapping("/qf/clue")
public class ClueController extends BaseController {


    @Autowired
    IClueService clueService;


    /**
     * 查询
     * @return
     */
    @RequiresPermissions("qf:clue:list")
    @GetMapping("/list")
    public TableDataInfo list() {
        startPage();
        List<Clue> list = clueService.getClueList();
        return getDataTable(list);
    }

    /**
     * 查看
     */



}
